package com.wandian.view.ui
{
	import com.wandian.core.BitmapManager;
	import com.wandian.data.UIVO;

	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.events.MouseEvent;

	/**
	 * 任务列表界面
	 * @author long
	 *
	 */
	public class UITaskList extends UILoadingBase
	{
		public function UITaskList()
		{
			super(new UIVO("taskList", "TaskListView"));
		}

		override protected function swfLoadComplete():void
		{
			super.swfLoadComplete();
			var btnClose:*=this.content.BTN_WindowClose;
			btnClose.addEventListener(MouseEvent.CLICK, onbtnCloseHandler);
		}

		protected function onbtnCloseHandler(event:MouseEvent):void
		{
			trace("UITaskList.onbtnCloseHandler(event)");
//			if (this.parent)
//			{
//				this.parent.removeChild(this);
//			}

			if (!UIPopupLayer.I.isShow)
			{
//				var map:Bitmap=new Bitmap(BitmapManager.instance.getBitmapDataByName("skull"));
//				UIPopupLayer.I.show(map);
			}
			else
			{
				UIPopupLayer.I.hide();
			}

		}
	}
}
